/*
* @Author: Rosen
* @Date:   2017-05-08 15:19:12
* @Last Modified by:   Administrator
* @Last Modified time: 2017-11-23 10:36:10
*/
// $(document).load(function(){

$(function(){
$(document).load(function(){
  console.log($(".header").html())
 })
 $(".ziying").load("layout/ziying.html");
 $(".bianlijie").load("layout/bianlijie.html");
 $("footer").load("layout/footer.html");
 $("header").load("layout/header2.html");


        

; var zhengwuHtml=$('#zhengwu').html();
 var caishuiHtml=$('#caishui').html();
 var waibaoHtml=$('#waibao').html();
 var zhuanrangHtml=$('#zhuanrang').html();
 var ad3Html=$('#ad3').html();
 // 政务服务
    $(function() {
              $.ajax({
                       type:"get",
                       url:"data/zhengwu.json",
                       async:true,
                       success: function(data){
                        console.log(data.zhengwu);
                        var zhengwudata=data.zhengwu
                        $('.keywords-list').html(doT.template(zhengwuHtml)(zhengwudata));
                       },
                       error: function(XMLHTTPRequest, textStatus, errorThrown){
                         console.log("XMLHttpRequest :"+ XMLHTTPRequest);
                         console.log("textStatus :"+textStatus);
                         console.log("errorThrown :"+errorThrown);
                       }
                     });
             
       
    });
// 企业工商财税
$(function() {
              $.ajax({
                       type:"get",
                       url:"data/caishui.json",
                       async:true,
                       success: function(data){
                        console.log(data.caishui);
                        var caishuidata=data.caishui
                        $('.yzt-center-top1').html(doT.template(caishuiHtml)(caishuidata));
                       },
                       error: function(XMLHTTPRequest, textStatus, errorThrown){
                         console.log("XMLHttpRequest :"+ XMLHTTPRequest);
                         console.log("textStatus :"+textStatus);
                         console.log("errorThrown :"+errorThrown);
                       }
                     });
             
       
    });
// 外包
$(function() {
              $.ajax({
                       type:"get",
                       url:"data/waibao.json",
                       async:true,
                       success: function(data){
                        console.log(data.waibao);
                        var waibaodata=data.waibao
                        $('.yzt-center-top2').html(doT.template(waibaoHtml)(waibaodata));
                       },
                       error: function(XMLHTTPRequest, textStatus, errorThrown){
                         console.log("XMLHttpRequest :"+ XMLHTTPRequest);
                         console.log("textStatus :"+textStatus);
                         console.log("errorThrown :"+errorThrown);
                       }
                     });
             
       
    });
// 转让
$(function() {
              $.ajax({
                       type:"get",
                       url:"data/zhuanrang.json",
                       async:true,
                       success: function(data){
                        console.log(data.zhuanrang);
                        var zhuanrangdata=data.zhuanrang
                        $('.yzt-center-center').html(doT.template(zhuanrangHtml)(zhuanrangdata));
                       },
                       error: function(XMLHTTPRequest, textStatus, errorThrown){
                         console.log("XMLHttpRequest :"+ XMLHTTPRequest);
                         console.log("textStatus :"+textStatus);
                         console.log("errorThrown :"+errorThrown);
                       }
                     });
             
       
    });
//小广告
$(function() {
              $.ajax({
                       type:"get",
                       url:"data/ad3.json",
                       async:true,
                       success: function(data){
                        console.log(data.ad3);
                        var ad3data=data.ad3
                        $('.adlists').html(doT.template(ad3Html)(ad3data));
                       },
                       error: function(XMLHTTPRequest, textStatus, errorThrown){
                         console.log("XMLHttpRequest :"+ XMLHTTPRequest);
                         console.log("textStatus :"+textStatus);
                         console.log("errorThrown :"+errorThrown);
                       }
                     });
             
       
    });
})
$(document).on("load",function(){
  console.log($(".header-left1").html())
})
